//
// Created by Administrator on 2017/8/7.
//

#include <jni.h>
#include <string>

extern "C"
JNIEXPORT jstring JNICALL
Java_cam_android_com_cn_jnidemo1_MainActivity_stringFromJNI3(
        JNIEnv* env,
        jobject /* this */) {
    std::string hello = "Hello from C++,第3种";
    return env->NewStringUTF(hello.c_str());
}
extern "C"
JNIEXPORT jstring JNICALL
Java_cam_android_com_cn_jnidemo1_MainActivity_stringFromJNI4(
        JNIEnv* env,
        jobject /* this */) {
    std::string hello = "Hello from C++,luoxukeun，第四种";
    return env->NewStringUTF(hello.c_str());
}